﻿using System.IO;
using System.Windows.Forms;

namespace Kay.Client.Demo
{
    public partial class TransferFile : UserControl
    {
        public TransferFileInfo File { get; set; }

        public ContactsInfo UserInfo { get; set; }

        public TransferFile(ContactsInfo info,TransferFileInfo file)
        {
            InitializeComponent();

            UserInfo = info;
            File = file;

            label_Name.Text = info.Name;
            label_FileName.Text = Path.GetFileName(file.SourceFileName);
        }

        public void ChangePro(int p)
        {
            progressBar.Value = p;
        }
    }
}
